package com.yonyou.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 中奖名单 实体类
 * 
 * @author shenjzh
 */
@Document(collection = "winninglist")
@ApiModel(value = "中奖名单")
public class WinningList {
	@Id
	@ApiModelProperty(value = "中奖名单ID")
	private String id;// 中奖名单ID

	@ApiModelProperty(value = "会议ID")
	private String meeting_id;// 会议ID

	@ApiModelProperty(value = "奖项ID")
	private String prize_id;// 奖项ID
	
	@ApiModelProperty(value = "用户ID")
	private String user_id;// 奖项ID

	@ApiModelProperty(value = "是否已领奖,0:未领奖,1:已领奖;")
	private String is_accept;// 是否已领奖,0:未领奖,1:已领奖;

	@ApiModelProperty(value = "抽奖形式,0,1,2,3分别对应按人抽，按组抽，按部门抽，按桌抽")
	private String draw_form;// 抽奖形式,0,1,2,3分别对应按人抽，按组抽，按部门抽，按桌抽

	@ApiModelProperty(value = "是否删除,0代表正常1代表已删除")
	private String dr;// 删除

	@ApiModelProperty(value = "最后操作日期时间")
	private String ts;// 日期

	@DBRef
	private User user;

	@DBRef
	private Prize prize;
	
	@DBRef
	private DrawTurn drawTurn;
	
	

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public DrawTurn getDrawTurn() {
		return drawTurn;
	}

	public void setDrawTurn(DrawTurn drawTurn) {
		this.drawTurn = drawTurn;
	}

	public String getDraw_form() {
		return draw_form;
	}

	public void setDraw_form(String draw_form) {
		this.draw_form = draw_form;
	}

	public Prize getPrize() {
		return prize;
	}

	public void setPrize(Prize prize) {
		this.prize = prize;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMeeting_id() {
		return meeting_id;
	}

	public void setMeeting_id(String meeting_id) {
		this.meeting_id = meeting_id;
	}

	public String getPrize_id() {
		return prize_id;
	}

	public void setPrize_id(String prize_id) {
		this.prize_id = prize_id;
	}

	public String getIs_accept() {
		return is_accept;
	}

	public void setIs_accept(String is_accept) {
		this.is_accept = is_accept;
	}

	public String getDr() {
		return dr;
	}

	public void setDr(String dr) {
		this.dr = dr;
	}

	public String getTs() {
		return ts;
	}

	public void setTs(String ts) {
		this.ts = ts;
	}
}
